<template>
  <div class="bigscreen-layout">
    <!-- 頂部標題區 -->
    <div class="header-title">开发者调查问卷</div>
    
    <!-- 導航欄 -->
    <div class="nav-bar">
      <router-link to="/" class="nav-item">首页</router-link>
      <router-link to="/page1" class="nav-item">开发者年龄分布</router-link>
      <router-link to="/page2" class="nav-item">教育水平与薪资、经验关系</router-link>
      <router-link to="/page3" class="nav-item">就业状态人数统计</router-link>
      <router-link to="/page4" class="nav-item">受访者访问频率</router-link>
      <router-link to="/page5" class="nav-item">全球国家数据分布</router-link>
      <router-link to="/framework" class="nav-item">开发工具使用</router-link>
      <router-link to="/lineleft" class="nav-item">开发语言使用情况</router-link>
    </div>

    <!-- 路由視圖 -->
    <div class="content-area">
      <router-view></router-view>
    </div>
  </div>
</template>

<style scoped>
.bigscreen-layout {
  width: 109vw;
  height: 100vh;
  background: linear-gradient(135deg, #0a2740 0%, #133b5c 100%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.header-title {
  width: 100%;
  height: 90px;
  line-height: 30px;
  text-align: center;
  font-size: 30px;
  color: #1e90ff;
  font-weight: bold;
  letter-spacing: 4px;
  background: rgba(20, 40, 70, 0.95);
  box-shadow: 0 2px 8px #1e90ff33;
  text-shadow: 0 0 8px #1e90ff88;
  border-bottom: 2px solid #1e90ff;
  z-index: 10;
  padding-top: 20px;
}

.nav-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(20, 40, 70, 0.95);
  padding: 10px 0;
  border-bottom: 2px solid #1e90ff;
}

.nav-item {
  color: #1e90ff;
  text-decoration: none;
  padding: 8px 20px;
  margin: 0 10px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.nav-item:hover {
  background: rgba(30, 144, 255, 0.2);
  transform: translateY(-2px);
}

.router-link-active {
  background: rgba(30, 144, 255, 0.3);
  box-shadow: 0 0 10px #1e90ff44;
}

.content-area {
  flex: 1;
  /* padding: 0px; */
  overflow: auto;
}
</style> 